layui.use(['form'],function () {
    var form=layui.form,$=layui.jquery;
    var id=$("input[name='id']").val();
    var index = parent.layer.getFrameIndex(window.name);
    var info=$("input[name='button']").val();
    var msg=$("input[name='msg']").val();
    if(info=="false"&&''==msg){
        parent.layer.msg("保存成功！");
        parent.layer.close(index);
        parent.location.reload();
    }
    $(".custom-save").on("click",function () {
        document.forms[0].submit();
    });

});
    